<?php

/**
 * Description of Gebruiker
 *
 * @author Nick
 */

require_once 'Applicatie.php';

class Gebruiker{
    
    private $userName = '';
    private $Password = '';
    private $Email = '';
    private $Security_Question = '';
    private $Security_Answer = '';
    private $recht_id;

    function __construct() {
    
    }
    
    public function Registreren(){
        $registratie = new DbGebruiker;
        $registratie->addGeregistreerdeGebruiker($this->getUsername(), $this->getPassword(), $this->getEmail(), $this->getSecurity_Question(), $this->getSecurity_Answer()); 
    }
    
    public function getRecht_id() {
        return $this->recht_id;
    }

    public function setRecht_id($recht_id) {
        $this->recht_id = $recht_id;
    }

        
    public function getUserName() {
        return $this->userName;
    }

    public function setUserName($userName) {
        $this->userName = $userName;
    }

    public function getPassword() {
        return $this->Password;
    }

    public function setPassword($Password) {
        $this->Password = md5($Password);
    }

    public function getEmail() {
        return $this->Email;
    }

    public function setEmail($Email) {
        $this->Email = $Email;
    }

    public function getSecurity_Question() {
        return $this->Security_Question;
    }

    public function setSecurity_Question($Security_Question) {
        $this->Security_Question = $Security_Question;
    }

    public function getSecurity_Answer() {
        return $this->Security_Answer;
    }

    public function setSecurity_Answer($Security_Answer) {
        $this->Security_Answer = $Security_Answer;
    }


    
}

?>
